<%@page import="com.system.uitls.Constants"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.system.vo.User"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	User user = (User)request.getSession().getAttribute(Constants.SESSION_USER);
	pageContext.setAttribute("currentUserId", user.getId());
	pageContext.setAttribute("currentUserName", user.getName());
	pageContext.setAttribute("currentUserCampus", user.getCampus());
%>
<c:set var="path" value="<%=request.getContextPath()%>"></c:set>
<script type="text/javascript" src="${path}/js/My97DatePicker/WdatePicker.js"></script>
<link rel="stylesheet" href="${path}/css/ui.zdialog.css" type="text/css"></link>
<link rel="stylesheet" href="${path}/css/common.css" type="text/css"></link>

<script type="text/javascript" src="${path}/js/public/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${path}/js/autocomplete/jquery.autocomplete.min.js"></script>
<script type="text/javascript" src="${path}/js/public/ajax.js"></script>
<script type="text/javascript" src="${path}/js/public/jquery.drag.js"></script>
<script type="text/javascript" src="${path}/js/public/zDialog.js"></script>
<script type="text/javascript" src="${path}/js/public/common.js"></script>


<script type="text/javascript">
	var ajax = new Buffalo("${path}/ccfapp");
	
	if(top.location.toString() != location.toString()) {
		// 先判断是否存在顶层frame
		var topDoc = top.document;
		if(topDoc.body.outerHTML.indexOf("zDialog.js") < 0) {
			var js = topDoc.createElement("script");
			js.src = "${path}/js/public/zDialog.js";
			topDoc.appendChild(js);
		}
	}
</script>
